home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-08-10 | 7.2 KB | 193 lines | [TEXT/MPS ] |
- #
- # File: More About MPW InForm
- #
- # Contains: xxx put contents here xxx
- #
- # Written by: G. Sawitzki, StatLab Heidelberg
- #
- # Copyright: © 1991 by G. Sawitzki, Heidelberg, all rights reserved.
- #
- # Change History (most recent first):
- #
- # <2> 8/9/91 gs add -a, -f options
- # <1> 8/2/91 gs first checked in
- #
- # To Do:
- #
-
- Input and output
- ================
-
- InForm can operate on windows or files. These operations are not equivalent.
- If InForm operates on a file, the complete file will be processed. If InForm
- operates on a window, and there is a non-empty selection in the window, only
- the selection will be processed.
-
- InForm is activated for a window if called in the form
- InForm window
- e.g.
- InForm "{active}"
- InForm restricts to active selections when operating on a window.
- InForm is activated to operate on a file if called in the form
- InForm -from file
- e.g.
- InForm -from MyFile.p
- When operating on files, InForm ignores selections.
-
-
- Pasmat control settings
- =======================
-
- InForm honours several of the PasMat settings when included as a comment.
- In particular, the following options are honoured:
- < not public so far >
-
-
- Cross-Referencing
- =================
-
- Cross-Referencing is activated using the -cross option.
-
-
- Format Control
- =================
- Formats are controlled by templates. These templates are selected by the -f option.
- The default format corresponds to -f STD.
-
- Abstract mode
- =============
-
- Abstract mode is activated using the -a option. Abstracts are written to
- standard output.
- Abstracts are controlled by templates. These templates are selected by the -a option.
- The default format corresponds to -f STD.
- Abstracts may include
- - all program or unit definition lines
- - uses statements
- - lines containing the keywords interface or implementation
- - lines containing the keyword object
- - lines containing function or procedure definitions
- - all lines identified as key comments.
-
-
-
- Diagnostic mode
- ===============
-
- Diagnostic mode is activated by the -p option. In diagnostic mode, inform will note
- all identified syntactical errors to diagnostic output.
-
- Abstract mode preferences
- =========================
-
- Abstract format is controlled by a resource of type StLA. The name of the resource is
- selected on the command line, using the -a options. Only uppercase letters are allowed.
- Abstract format allows to support "styles" for various parts of the components (e.g. 411
- "Tags" or RTF style information)
- The use of the abstract formatting possibilities is still under development;
- not all options are supported so far.
-
- The general layout of a source file is viewed as:
-
- {possibly some preamble here}
- <code start, e.g. Program...>
- <global declarations>
- <a fixed number of empty lines (default:2) , or a fixed tag>
- {possibly a leading comment here}
- <procedure/function heading> {possibly a trailing comment here}
- {possibly a pending comment here}
- <implementation>
- ...
-
- A preamble is a comment starting at the first position of the selection resp. file.
- A leading comment is a comment following a specific number of empty lines, or starting
- with a specific tag string.
- A trailing comment is a comment starting on a line containing code.
- A pending comment is a comment starting after an object function or procedure definition,
- with no intervening code.
-
- Comments and code segments are started by a header and followed by a trailer.
-
-
- Version HWRD internal use. should be set to 1.
- Preamble BOOL include preamble
- Leading Comments BOOL ? include leading comments
- Code BOOL ? include code lines
- Trailing Comments BOOL ? include trailing comments
- Pending Comments BOOL ? include pending comments
- Reserved05 BOOL ?
- Reserved06 BOOL ?
- interface/ global only BOOL do not include implementation and nested constructs
- all global BOOL include global const, types, vars
- program segments BOOL include program, interface, implementation statments
- uses clause BOOL include uses clause
- include clause BOOL ? include $I clauses
- "Make" format BOOL •test
- reserved31 BOOL ?
- reserved32 BOOL ?
- Indent leading comments BOOL ?
- Indent pending comments BOOL ?
- Remove comment brackets BOOL remove {} brackets from comments
- reserved71 BOOL ?
- reserved72 BOOL ?
- Nr leading empty lines DWRD marker to trigger leading comments
- Leading tag PSTR ?
- Preamble header PSTR header text to insert before preamble
- Preamble trailer PSTR trailer text to insert after preamble
- Code header PSTR header text to insert before code
- Code trailer PSTR trailer text to insert after code
- Leading comment header PSTR header text to insert before leading comment
- Leading comment trailer PSTR trailer text to insert after leading comment
- Pending comment header PSTR header text to insert before pending comment
- Pending comment trailer PSTR trailer text to insert after pending comment
- Trailing comment header PSTR header text to insert before trailing comment
- Trailing comment trailer PSTR trailer text to insert after trailing comment
-
-
-
- Format preferences
- ==================
-
- Source format is controlled by a resource of type StLF. The name of the resource is
- selected on the command line, using the -f option. Only uppercase letters are allowed.
-
- The use of the code formatting styles is still under development;
- not all options are supported so far.
-
- version HWRD internal use. should be set to 1
- a: case bunching BOOL ?
- b: if bunching BOOL ?
- body BOOL ?
- PASMATc BOOL ?
- PASMATd BOOL ?
- e Capitalize identifiers BOOL ?
- entab BOOL ?
- f disable formatting BOOL ?
- group assignement BOOL ?
- h disable for,while,with bunching BOOL ?
- ¿¿¿ i include directories BOOL ?
- in: process include files BOOL ?
- k: indent between begin/end BOOL ?
- l literal copy BOOL ?
- list BOOL ?
- n: group formal parameters BOOL ?
- o output line width DWRD sets maximum output line width
- p BOOL ?
- pattern BOOL ?
- q ELSE IF special BOOL ?
- r reserved uppercase BOOL change all reserved words to uppercase
- rec BOOL ?
- s BOOL ?
- t tab amount DWRD set nr of spaces per tab
- u rename on first occurence BOOL ?
- v THEN on separate line BOOL ?
- w identifiers uppercase BOOL ?
- x suppress space around operators BOOL ?
- y suppress space around := BOOL ?
- z suppress space after commas BOOL ?
- : align colons in var definitions BOOL ?
- @ force multiple case on separate lines BOOL ?
- # smart grouping BOOL ?
- _ partability mode BOOL ?
-
-